#ifndef QBINARYRPC_CLIENTPRIVATE_H
#define QBINARYRPC_CLIENTPRIVATE_H

#include "qbinaryrpc_client.h"
#include "qbinaryrpc_response.h"
#include "qbinaryrpc_request.h"
#include "qtcpsocket.h"

namespace qbinaryrpc {
class Client::Private : public QObject {
  Q_OBJECT
public:
  Private();
  QHostAddress host;
  quint16 port;
  QTcpSocket socket;
  int id;
  QList<int> requests;
signals:
void done(int, const QVariant &);
void fault(int, int, const QString &);
public slots:
  void error(QAbstractSocket::SocketError);
  void decodeResponse();
};

} //namespace qbinaryrpc
#endif //QBINARYRPC_CLIENTPRIVATE_H
